﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="advisorProfile.aspx.cs" Inherits="Project.advisorProfile" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Advisor Profile</title>
    <link href="main.css" rel="stylesheet" />
    <style type="text/css">
        .auto-style1 {
            width: 134px;
        }
        .auto-style2 {
            width: 251px;
        }
    </style>
</head>
<body>
     <form id="form1" runat="server">
         
        <!--<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>-->
                <div>
                    <asp:Label ID="lbl_username" CssClass="lblUser" runat="server" Text=""></asp:Label>
                    <asp:Button ID="btn_logout" CssClass="logoutstyle" runat="server" Text="Log Out" OnClick="btn_logout_Click" Width="78px" />
                    <asp:Label ID="lbl_profile" CssClass="profile_text_style" runat="server" Text="Advisor Profile"></asp:Label>
                    <table class="student_table">
                        <tr>
                            <td class="auto-style2">
                                <asp:Label ID="fname" runat="server" Text="First Name"></asp:Label></td>
                            <td class="auto-style1">
                                <asp:TextBox ID="txt_firstName" runat="server"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td class="auto-style2">
                                <asp:Label ID="lname" runat="server" Text="Last Name"></asp:Label></td>
                            <td class="auto-style1">
                                <asp:TextBox ID="txt_lastName" runat="server"></asp:TextBox></td>
                        </tr>
                       
                        <tr>
                            <td class="auto-style2">
                                <asp:Label ID="pemail" runat="server" Text="Email Primary"></asp:Label></td>
                            <td class="auto-style1">
                                <asp:TextBox ID="txt_email" runat="server"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td class="auto-style2">
                                <asp:Label ID="semail" runat="server" Text="Email Secondary"></asp:Label></td>
                            <td class="auto-style1">
                                <asp:TextBox ID="txt_emailS" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td class="auto-style2">
                                <asp:Label ID="pext" runat="server" Text="Phone Extension"></asp:Label></td>
                            <td class="auto-style1">
                                <asp:TextBox ID="txt_phoneExtension" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        
                        <tr>
                            <td class="auto-style2">&nbsp;</td>
                        </tr>
                        <tr>
                            <td colspan="2" align="center">
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td colspan="2" align="center">
                                <br />
                                <br />
                                <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" CellPadding="4" DataSourceID="SqlDataSource1" EnableModelValidation="True" ForeColor="#333333" GridLines="None">
                                    <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                                    <Columns>
                                        <asp:BoundField DataField="StudentId" HeaderText="StudentId" SortExpression="StudentId" />
                                        <asp:BoundField DataField="AppDate" HeaderText="AppDate" SortExpression="AppDate" />
                                        <asp:BoundField DataField="AppStart" HeaderText="AppStart" SortExpression="AppStart" />
                                        <asp:BoundField DataField="Location" HeaderText="Location" SortExpression="Location" />
                                        <asp:BoundField DataField="Purpose" HeaderText="Purpose" SortExpression="Purpose" />
                                    </Columns>
                                    <EditRowStyle BackColor="#999999" />
                                    <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                    <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                    <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                                    <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                                    <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                                </asp:GridView>
                                <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:StudentAdvisorString %>" SelectCommand="SELECT [StudentId], [AppDate], [AppStart], [Location], [Purpose] FROM [appointment] WHERE ([AdvisorId] = @AdvisorId)">
                                    <SelectParameters>
                                        <asp:SessionParameter Name="AdvisorId" SessionField="userID" Type="String" />
                                    </SelectParameters>
                                </asp:SqlDataSource>
                                <br />
                                <br />
                            </td>
                        </tr>
                    </table>
                </div>
        
            <!--</ContentTemplate>
        </asp:UpdatePanel>-->
    </form>
</body>
</html>
